package com.ml.mall.bean.req.category;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 *   @description    :description 
 *   @author         :zxm
 *   @date           :2021/5/17
 *   @version        :1.0
**/
@ApiModel(value = "目录新增类")
@Data
public class CategorySubNewDto {
    @ApiModelProperty(value = "上级目录id")
    @NotNull(message = "父目录自定义id不能为空")
    private String parentId;

    @ApiModelProperty(value = "目录名称")
    @NotBlank(message = "目录名称不能为空")
    private String categoryName;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer indexNo;
}
